package com.itheima.mapper;

import com.itheima.pojo.ShoppingCar;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author :WuJunJie
 * packageName :com.itheima.mapper
 * fileName :ShopingCarMapper
 * creationTime :2022-11-27 16:35
 */
@Mapper
public interface ShoppingCarMapper {
    Integer insertShoppingCar(@Param("shoppingCar") ShoppingCar shoppingCar);

    List<ShoppingCar> selectShoppingCarByUserId(@Param("userId") String userId);

    ShoppingCar selectByDishIdOrSetmealId(@Param("shoppingCar") ShoppingCar shoppingCar);

    Integer updatebyId(@Param("shoppingCar") ShoppingCar shoppingCar);

    Integer deleteShoppingCar(@Param("shoppingCar") ShoppingCar shoppingCar);

    Integer deleteAllShoppingCar(@Param("userId")String userId);



}
